<?php
/**
 * Created by PhpStorm.
 * User: DOVEGIFT
 * Date: 2019/6/22
 * Time: 9:11
 */
header("Access-Control-Allow-Origin:*");
header("Content-Type:application/json;charset=utf-8");
session_start();
//把session清空就是退出
if(isset($_SESSION["userInfo"])){
    print_r(json_encode(array("status"=>true,"msg"=>"已登录")));
}else{
    print_r(json_encode(array("status"=>false,"msg"=>"未登录")));
}